//
//  StringHelper.h
//  testWebView
//
//  Created by ty804 on 04/05/2019.
//  Copyright © 2019 ty804. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SouceModel.h"
#import "ClassModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface StringHelper : NSObject
+(StringHelper *) sharedManage;
-(void)traverse_souceCode_souceCode:(NSString *)code back:(void (^_Nonnull)(NSArray<SouceModel*> *model))classModel;//分离代码块

-(void)addClassModel:(NSInteger)index totleModel:(NSArray *)arrModel back:(void (^_Nonnull)(NSArray<SouceModel*> *model,NSArray<ClassModel*> *classmodel))classModel;

-(void)addPrameterWithNum:(NSInteger)index ratio:(NSInteger)ratio model:(SouceModel *)model back:(void (^_Nonnull)(SouceModel *model))classModel;
-(void)addClassPrameter:(NSArray<SouceModel *> *)arrSouceModel classModel:(NSArray<ClassModel *> *)classModel back:(void (^_Nonnull)(NSArray<SouceModel *> *model))arrClassModel;

-(void)restructuringCode:(NSArray<SouceModel*> *)arrModel back:(void (^_Nonnull)(NSString *code))backCode;
@end

NS_ASSUME_NONNULL_END
